<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div id="app">
    <input type="text" v-model="school.name">
    <div>{{school.age}}</div>
    {{school.name}}
    {{arr.3}}
    <h3>{{getall}}</h3>
    <h3>{{getall}}</h3>
    <button v-on:click="getName">点击</button>
    <p v-html="school.name"></p>
</div>

<script src="mvvm.js"></script>
<script>
    let vm = new Vue({
        el:"#app",
        data:{
            school:{
                name:'盖伦',
                age:10
            },
            arr:[1,2,3,4]
        },
        methods: {
            getName(){
                this.school.name = "亚索"
            }
        },
        computed: {
            getall(){
                return this.school.name + this.school.age
            }
        }
    })
</script>
</body>
</html>